#include "global.h"
#include "hConfig.h"
#include "hInterval.h"

template <>
size_t hHash<hInterval<size_t>>(const hInterval<size_t>& dt)
{
	hBitStr bit;
	bit << dt.left().close() << dt.left().left() << std::bitset<sizeof(size_t)>(dt.left().val());
	bit << dt.right().close() << dt.right().left() << std::bitset<sizeof(size_t)>(dt.right().val());
	return hHash(bit);
}

TXTOPT(hInterval<int>, IntvI);
TXTOPT(hInterval<size_t>, IntvU);
